Type.registerNamespace("Telerik.Web.UI");
(function(){var a=Telerik.Web.UI;
a.SliderValueChangedEventArgs=function(b,c){a.SliderValueChangedEventArgs.initializeBase(this);
this._oldValue=b;
this._newValue=c;
};
a.SliderValueChangedEventArgs.prototype={get_oldValue:function(){return this._oldValue;
},get_newValue:function(){return this._newValue;
}};
a.SliderValueChangedEventArgs.registerClass("Telerik.Web.UI.SliderValueChangedEventArgs",Sys.EventArgs);
a.SliderValueChangeEventArgs=a.SliderValueChangedEventArgs;
a.SliderValueChangingEventArgs=function(b,c){a.SliderValueChangingEventArgs.initializeBase(this);
this._oldValue=b;
this._newValue=c;
};
a.SliderValueChangingEventArgs.prototype={get_oldValue:function(){return this._oldValue;
},get_newValue:function(){return this._newValue;
}};
a.SliderValueChangingEventArgs.registerClass("Telerik.Web.UI.SliderValueChangingEventArgs",Sys.CancelEventArgs);
a.SliderBeforeValueChangeEventArgs=a.SliderValueChangingEventArgs;
a.SliderItemType=function(){throw Error.invalidOperation();
};
a.SliderItemType.prototype={None:1,Item:2,Tick:3};
a.SliderItemType.registerEnum("Telerik.Web.UI.SliderItemType",false);
a.SliderTrackPosition=function(){throw Error.invalidOperation();
};
a.SliderTrackPosition.prototype={Center:1,TopLeft:2,BottomRight:3};
a.SliderTrackPosition.registerEnum("Telerik.Web.UI.SliderTrackPosition",false);
a.RadSlider=function(b){a.RadSlider.initializeBase(this,[b]);
this._minimumValue=0;
this._maximumValue=100;
this._value=0;
this._orientation=a.Orientation.Horizontal;
this._isHorizontal=true;
this._animationDuration=100;
this._showDecreaseHandle=true;
this._showIncreaseHandle=true;
this._showDragHandle=true;
this._enabled=true;
this._slideStep=1;
this._smallChange=1;
this._largeChange=0;
this._clickOffset=0;
this._trackMouseWheel=true;
this._length=200;
this._width="";
this._height="";
this._skin="Default";
this._autoPostBack=false;
this._firstValueOffset;
this._firstValueDragHandlePosition;
this._wrapperElement=null;
this._dragHandleElement=null;
this._mouseupHandler=null;
this._mouseWheelHandler=null;
this._inSlidingMode=false;
this._dragText="Drag";
this._increaseText="Increase";
this._decreaseText="Decrease";
this._uniqueID=null;
this._resizeExtender=null;
this._selectionEnd=0;
this._isSelectionRangeEnabled=false;
this._endDragHandleElement=null;
this._endResizeExtender=null;
this._children=null;
this._childControlsCreated=false;
this._itemType=a.SliderItemType.None;
this._smallTickSize=0;
this._largeTickSize=0;
this._renderLargeTicks=false;
this._renderSmallTicks=false;
this._liveDrag=true;
this._liveDragValue;
this._liveDragHandleElement=null;
this._liveDragEndHandleElement=null;
this._trackPosition=a.SliderTrackPosition.Center;
this._isDirectionReversed=false;
this._valueBeforeAnimation=null;
this._selectionEndBeforeAnimation=null;
this._rightToLeft=false;
this.repaint=this.redraw;
this.Redraw=this.redraw;
};
a.RadSlider.prototype={initialize:function(){var d=this._minimumValue;
if(d>this._maximumValue){throw Error.argumentOutOfRange("_minimumValue",d,"MinimumValue should be smaller than MaximumValue");
}a.RadSlider.callBaseMethod(this,"initialize");
var b=this._value=this._getValueFromIndex(this._value);
if(this._isSelectionRangeEnabled){var e=this._selectionEnd=this._getValueFromIndex(this._selectionEnd);
var c=this._isDirectionReversed;
if((e<b&&!c)||(e>b&&c)){var f=this._selectionEnd;
this._selectionEnd=b;
this._value=f;
this.updateClientState();
}}this._initializeSliderControl();
if(this.get_itemData().length==0){this.raiseEvent("load");
}},_addParentVisibilityChangeHandler:function(c,b){if(c){if($telerik.isIE){$addHandler(c,"propertychange",b);
}else{c.addEventListener("DOMAttrModified",b,false);
}}},_removeParentVisibilityChangeHandler:function(c,b){if(c&&b){if($telerik.isIE){$removeHandler(c,"propertychange",b);
}else{c.removeEventListener("DOMAttrModified",b,false);
}}},_initializeSliderControl:function(g){if(g){var b=$telerik.isIE;
if(b){g=g.rawEvent;
}var c=(b&&g&&(g.propertyName=="style.display"||g.propertyName=="className"));
var f=(!b&&(g.attrName=="style"||g.attrName=="class"));
if(!(f||c)){return;
}}this._disposeParentVisibilityChangeHandler();
var d=$telerik.getInvisibleParent(this.get_element().parentNode);
if(d){this._invisibleParent=d;
this._onParentVisibilityChangeDelegate=Function.createDelegate(this,this._initializeSliderControl);
this._addParentVisibilityChangeHandler(d,this._onParentVisibilityChangeDelegate);
}else{if(!this._wrapperElement){this._initializeLayout();
this._initializeSlider();
this._createChildControls();
this._setValuesForSlider();
}}},_disposeParentVisibilityChangeHandler:function(){if(this._invisibleParent&&this._onParentVisibilityChangeDelegate){this._removeParentVisibilityChangeHandler(this._invisibleParent,this._onParentVisibilityChangeDelegate);
this._invisibleParent=null;
this._onParentVisibilityChangeDelegate=null;
}},_initializeLayout:function(){var e=this.get_element();
$addHandler(e,"click",$telerik.cancelRawEvent);
var b=e.className;
var h=this._skin;
if(b==""||b.indexOf("RadSlider")==-1){b="RadSlider "+("RadSlider_"+h);
Sys.UI.DomElement.addCssClass(e,b);
}if($telerik.isRightToLeft(e)){Sys.UI.DomElement.addCssClass(e,"RadSliderRTL");
Sys.UI.DomElement.addCssClass(e,"RadSliderRTL_"+h);
this._rightToLeft=true;
}var f=this.get_id();
var g=this._wrapperElement=document.createElement("DIV");
e.appendChild(g);
g.id="RadSliderWrapper_"+f;
g.setAttribute("unselectable","on");
this._setWidth();
this._setHeight();
this._setOrientation();
this._setEnabled();
this._setTrackPosition();
this._setShowHandle(true);
var d=this._trackElement=document.createElement("DIV");
d.setAttribute("unselectable","on");
d.id="RadSliderTrack_"+f;
Sys.UI.DomElement.addCssClass(d,"rslTrack");
if(!this._showDecreaseHandle){d.style[this._getLocationProperty()]="0px";
}g.appendChild(d);
var c=this._selectedRegionElement=document.createElement("DIV");
c.setAttribute("unselectable","on");
c.id="RadSliderSelected_"+f;
Sys.UI.DomElement.addCssClass(c,"rslSelectedregion");
c.innerHTML="<!-- -->";
d.appendChild(c);
this._setShowDragHandle();
this._setShowHandle(false);
this._setSliderElementsSize();
},_createHandleUI:function(b,c,d){var f=document.createElement("A");
f.id=b;
f.href="#";
Sys.UI.DomElement.addCssClass(f,d);
f.title=c;
$addHandler(f,"mouseup",Function.createDelegate(f,this._clearFocus));
var e=document.createElement("SPAN");
e.innerHTML=c;
f.appendChild(e);
return f;
},_clearFocus:function(b){this.blur();
},_addDragHandleElement:function(d,e){var g=this._dragText;
var c="rslDraghandle";
var b=(e?"RadSliderEndDrag_":"RadSliderDrag_")+this.get_id();
var h=this._createHandleUI(b,g,c);
d.appendChild(h);
this[e?"_endDragHandleElement":"_dragHandleElement"]=h;
if(!this._liveDrag){var f=this._createHandleUI(("liveDrag_"+b),g,(c+" rslLiveDragHandle"));
d.appendChild(f);
this[e?"_liveDragEndHandleElement":"_liveDragHandleElement"]=f;
}},_setWidth:function(){var b=parseInt(this._width);
if(!isNaN(b)&&(b>0)){b+="px";
this.get_element().style.width=b;
this._wrapperElement.style.width=b;
}},_setHeight:function(){var b=parseInt(this._height);
if(!isNaN(b)&&(b>0)){b+="px";
this.get_element().style.height=b;
this._wrapperElement.style.height=b;
}},_setOrientation:function(){var d=this._wrapperElement;
var b=this._isHorizontal;
Sys.UI.DomElement.removeCssClass(d,(!b?"rslHorizontal":"rslVertical"));
Sys.UI.DomElement.addCssClass(d,(b?"rslHorizontal":"rslVertical"));
this._isHorizontal=!b;
var c=this._getTrackPositionClass(this._trackPosition);
this._isHorizontal=b;
Sys.UI.DomElement.removeCssClass(d,c);
this._setTrackPosition();
},_setEnabled:function(){var c=this._wrapperElement;
var b=this._isSelectionRangeEnabled;
if(this._enabled){Sys.UI.DomElement.removeCssClass(c,"rslDisabled");
this._createDragHandleExtender();
if(b){this._createDragHandleExtender(true);
}}else{Sys.UI.DomElement.addCssClass(c,"rslDisabled");
this._disposeDragHandleExtender();
if(b){this._disposeDragHandleExtender(true);
}}},_getTrackPositionClass:function(c){var b=this._isHorizontal;
var d=(b)?"rslMiddle":"rslCenter";
if(c==a.SliderTrackPosition.TopLeft){d=(b)?"rslTop":"rslLeft";
}else{if(c==a.SliderTrackPosition.BottomRight){d=(b)?"rslBottom":"rslRight";
}}return d;
},_setTrackPosition:function(b){if(this._itemType==a.SliderItemType.None){return;
}var c=this._wrapperElement;
var d;
if(b!=null){d=this._getTrackPositionClass(b);
Sys.UI.DomElement.removeCssClass(c,d);
}d=this._getTrackPositionClass(this._trackPosition);
Sys.UI.DomElement.addCssClass(c,d);
},_setShowHandle:function(k){var b=k?"_showDecreaseHandle":"_showIncreaseHandle";
var l=k?"_decreaseHandleElement":"_increaseHandleElement";
var n=this._getLocationProperty();
var h=this._trackElement;
var c=this._listElement;
var e=this[b];
var m=this[l];
if(m){if(!e){clearTimeout(this[k?"_decreaseMDownInterval":"_increaseMDownInterval"]);
$clearHandlers(m);
m.parentNode.removeChild(m);
this[l]=null;
if(k){if(h){h.style[n]="0";
}if(c){c.style[n]="0";
}}}}else{if(e){if(k){if(h){h.style[n]="";
}if(c){c.style[n]="";
}}var i=k?"rslDecrease":"rslIncrease";
var f=this._isDirectionReversed;
var g=this[(k&&!f)||(!k&&f)?"_decreaseText":"_increaseText"];
var j=(k?"RadSliderDecrease_":"RadSliderIncrease_")+this.get_id();
var d=this[l]=this._createHandleUI(j,g,("rslHandle "+i));
this._wrapperElement.appendChild(d);
$addHandlers(d,{mousedown:this[k?"_onDecreaseMouseDown":"_onIncreaseMouseDown"]},this);
}}},_initializeDragHandle:function(b){this._addDragHandleElement(this._trackElement,b);
this._createDragHandleExtender(b);
},_disposeDragHandle:function(b){this._disposeDragHandleExtender(b);
var d=this[b?"_endDragHandleElement":"_dragHandleElement"];
d.parentNode.removeChild(d);
this[b?"_endDragHandleElement":"_dragHandleElement"]=null;
if(!this._liveDrag){var c=this[b?"_liveDragEndHandleElement":"_liveDragHandleElement"];
c.parentNode.removeChild(c);
this[b?"_liveDragEndHandleElement":"_liveDragHandleElement"]=null;
}},_setShowEndDragHandle:function(){var d=this._isSelectionRangeEnabled;
var b=this._showDragHandle;
var c=this._endDragHandleElement;
if(c){if(!b||!d){if(!d&&(c.id=="RadSliderDrag_"+this.get_id())){this._isSelectionRangeEnabled=true;
this._switchDragHanldes();
this._isSelectionRangeEnabled=false;
}this._disposeDragHandle(true);
}}else{if(b&&d){this._initializeDragHandle(true);
}}},_setShowDragHandle:function(){var b=this._showDragHandle;
if(this._dragHandleElement){if(!b){this._disposeDragHandle();
this._setShowEndDragHandle();
}}else{if(b){this._initializeDragHandle();
this._setShowEndDragHandle();
}}},_createDragHandleExtender:function(d){if(!this._enabled){return;
}var g=this._liveDrag?this[d?"_endDragHandleElement":"_dragHandleElement"]:this[d?"_liveDragEndHandleElement":"_liveDragHandleElement"];
var f=d?"_endResizeExtender":"_resizeExtender";
if(g&&!this[f]){var e=($telerik.isIE)?"hand":"pointer";
var b={};
b[e]=g;
var c=this[f]=new a.ResizeExtender(this,g,b,null,null,e,false);
c.set_hideIframes(false);
}},_refreshLayout:function(){this._setSliderElementsSize();
this._setValuesForSlider();
},_setValuesForSlider:function(){this._setNewValue(this._value,true,true);
if(this._isSelectionRangeEnabled){this._setNewValue(this._selectionEnd,false,true);
}},_setSliderElementsSize:function(){if(!this._wrapperElement){return;
}var f=(this._showIncreaseHandle)?this._getIncreaseHandleBounds().width:0;
var b=(this._showDecreaseHandle)?this._getDecreaseHandleBounds().width:0;
var c=this.get_length()-b-f;
var i=this._trackElement;
i.style.width="";
i.style.height="";
var d=$telerik.getSize(i);
var e=this._isHorizontal;
var j=(e)?c:d.width;
var m=(!e)?c:d.height;
if(j>0&&m>0){$telerik.setSize(i,{width:j,height:m});
}var h=false;
if(this._children&&this._itemType==a.SliderItemType.Tick){var g=this._checkRenderTicks();
var k=g.renderLargeTicks;
var l=g.renderSmallTicks;
if(this._renderLargeTicks!=k||this._renderSmallTicks!=l){this._children.clear();
this._itemsUICreated=false;
this._itemData=[];
this._createChildControls();
h=true;
}}if(!h){this._setItemsSize();
}this._setFirstValueOffset();
},_setFirstValueOffset:function(){var b=Math.floor(this._getHalfDragHandleSize());
if(this._itemType==a.SliderItemType.Tick){this._firstValueOffset=b;
this._firstValueDragHandlePosition=0;
}else{this._firstValueOffset=0;
this._firstValueDragHandlePosition=-b;
}},_initializeSlider:function(){this._initializeEventHandlers();
},_initializeEventHandlers:function(){this._mouseupHandler=Function.createDelegate(this,this._onMouseUp);
$telerik.addExternalHandler(document,"mouseup",this._mouseupHandler);
$addHandlers(this._trackElement,{mousedown:this._onTrackMouseDown},this);
this._setTrackMouseWheel();
},_setTrackMouseWheel:function(){this._disposeTrackMouseWheelHandler();
if(!this._trackMouseWheel||this._isSelectionRangeEnabled){return;
}var b=this._trackElement;
this._mouseWheelHandler=Function.createDelegate(this,this._onMouseWheel);
$telerik.addExternalHandler(b,"mousewheel",this._mouseWheelHandler);
if($telerik.isFirefox){$telerik.addExternalHandler(b,"DOMMouseScroll",this._mouseWheelHandler);
}},_disposeTrackMouseWheelHandler:function(){var b=this._trackElement;
if(this._mouseWheelHandler&&b){$telerik.removeExternalHandler(b,"mousewheel",this._mouseWheelHandler);
if($telerik.isFirefox){$telerik.removeExternalHandler(b,"DOMMouseScroll",this._mouseWheelHandler);
}this._mouseWheelHandler=null;
}},dispose:function(){this._animatedHandle=null;
this._handleInSlidingMode=null;
this._disposeHandlers();
this._disposeSlider();
a.RadSlider.callBaseMethod(this,"dispose");
},_disposeSlider:function(){this._disposeDragHandleExtender();
this._disposeDragHandleExtender(true);
clearTimeout(this._increaseMDownInterval);
clearTimeout(this._decreaseMDownInterval);
clearTimeout(this._mDownInterval);
this._dragHandleElement=null;
this._endDragHandleElement=null;
this._decreaseHandleElement=null;
this._increaseHandleElement=null;
this._trackElement=null;
this._selectedRegionElement=null;
this._liveDragHandleElement=null;
this._liveDragEndHandleElement=null;
this._listElement=null;
this._wrapperElement=null;
},_disposeHandlers:function(){$clearHandlers(this.get_element());
if(this._trackElement){$clearHandlers(this._trackElement);
}if(this._listElement){$clearHandlers(this._listElement);
}if(this._decreaseHandleElement){$clearHandlers(this._decreaseHandleElement);
}if(this._increaseHandleElement){$clearHandlers(this._increaseHandleElement);
}if(this._selectedRegionElement){$clearHandlers(this._selectedRegionElement);
}if(this._mouseupHandler){$telerik.removeExternalHandler(document,"mouseup",this._mouseupHandler);
this._mouseupHandler=null;
}this._disposeTrackMouseWheelHandler();
this._disposeParentVisibilityChangeHandler();
},_disposeDragHandleExtender:function(b){var c=b?"_endResizeExtender":"_resizeExtender";
if(this[c]){this[c].dispose();
this[c]=null;
}},onDragStart:function(i){var e=i.element;
if(isNaN(parseInt(e.style.left))){e.style.left="0";
}if(isNaN(parseInt(e.style.top))){e.style.top="0";
}if(!this._liveDrag){Sys.UI.DomElement.removeCssClass(e,"rslLiveDragHandle");
Sys.UI.DomElement.addCssClass(e,"rslLiveDragHandleActive");
e=(e.id=="liveDrag_"+this._dragHandleElement.id)?this._dragHandleElement:this._endDragHandleElement;
}this._handleInSlidingMode=e;
this._valueOnSlideStart=this._getActiveDragHandleValue(this._updateSelectionStart(null,e));
if(!this._liveDrag){this._liveDragValue=this._valueOnSlideStart;
}this._inSlidingMode=true;
var f=this._cachedDragHandleSize=$telerik.getSize(e);
var h=this._trackElement;
var g=$telerik.getBorderBox(h);
var b=$telerik.getSize(h);
var d=this._isHorizontal;
var c=this._firstValueDragHandlePosition;
this._cachedSliderBounds=new Sys.UI.Bounds((d?c:0),(!d?c:0),((d)?(b.width-g.horizontal+f.width):f.width),((!d)?(b.height-g.vertical+f.height):f.height));
this.raiseEvent("slideStart");
return true;
},onDragEnd:function(g){var e=g.element;
var f=this._handleInSlidingMode;
var d=this._updateSelectionStart(null,f);
if(!this._liveDrag){Sys.UI.DomElement.removeCssClass(e,"rslLiveDragHandleActive");
Sys.UI.DomElement.addCssClass(e,"rslLiveDragHandle");
var h=this._liveDragValue;
var b=this._calculateDragHandleOffset(h);
var i=this._getLocationProperty();
var c=this._setActiveDragHandleValue(h,d);
if(!c){f.style[i]=b+"px";
this._updateSelectedRegion(f,b);
}else{this._updateRelativeLiveDragHandlePosition(f);
}}else{this.updateClientState();
}this._cachedSliderBounds=null;
this._cachedDragHandleSize=null;
this._inSlidingMode=false;
this.raiseEvent("slideEnd");
if(this._autoPostBack&&this._valueOnSlideStart!=this._getActiveDragHandleValue(d)){this._raiseValueChangedServerEvent();
}},onDrag:function(g){var f=this._cachedDragHandleSize;
var k=this._cachedSliderBounds;
if(k.width<1||k.height<1){return false;
}var j=a.ResizeExtender.containsBounds(k,new Sys.UI.Bounds(g.x,g.y,f.width,f.height));
if(!j){if(g.x<=k.x){g.x=k.x;
}else{if(k.x+k.width<=g.x+f.width){g.x=k.x+k.width-f.width;
}}if(g.y<=k.y){g.y=k.y;
}else{if(k.y+k.height<=g.y+f.height){g.y=k.y+k.height-f.height;
}}j=true;
}var e=g.element;
var h=this._updateSelectionStart(null,e);
var d=this._calcValue(null,null,g,h);
var b=this._calculateDragHandleOffset(d);
g[this._getPointProperty()]=b;
var i=this._liveDrag;
if(i&&this._getActiveDragHandleValue(h)!=d){var c=this._setActiveDragHandleValue(d,h,false,true);
if(c){j=false;
}else{this._updateSelectedRegion(e,b);
}}else{if(!i&&this._liveDragValue!=d){this._liveDragValue=d;
}else{j=false;
}}this.raiseEvent("slide");
return j;
},_playAnimation:function(g,k){if(this._animationEnded==false){this._handleInSlidingMode=this._animatedHandle;
return;
}this._animationEnded=false;
var h=this;
var l=function(){h._setActiveDragHandleValue(g,k,true);
h._animationEnded=true;
};
var e=this._isHorizontal;
var c=this._animationDuration;
var m=this._calculateDragHandleOffset(g);
var f=this._getSelectionAnimationEndBounds(m,k);
var b=e?{width:f.width+"px",left:f.x+"px"}:{height:f.height+"px",top:f.y+"px"};
$telerik.$(this._selectedRegionElement).stop().animate(b,c,null,l);
if(this._showDragHandle){var d=this._animatedHandle=k?this._dragHandleElement:this._endDragHandleElement;
var j=e?{left:m+"px"}:{top:m+"px"};
var i=Function.createDelegate(this,this._onDragHandleAnimationEnded);
$telerik.$(d).stop().animate(j,c,null,i);
}},_getSelectionAnimationEndBounds:function(i,h){var g=this._getSelectedRegionBounds();
var d=Math.floor(i+this._getHalfDragHandleSize());
var b=this._getSizeProperty();
var c=this._getPointProperty();
if(this._isSelectionRangeEnabled){var f=g[c];
var e=f+g[b];
if(h){g[c]=d;
f=d;
}else{e=d;
}d=e-f;
}else{if(this._isDirectionReversed){g[c]=d;
d=this._getTrackBounds().width-d;
}}d=(d<0)?0:d;
g[b]=d;
return g;
},_onDragHandleAnimationEnded:function(){this._updateRelativeLiveDragHandlePosition(this._handleInSlidingMode);
},_createChildControls:function(){if(this._itemsUICreated){return;
}if(!this._children){this._children=new a.RadSliderItemCollection(this);
}if(!this._wrapperElement){return;
}var b=this.get_itemData();
if(!b||b.length==0){if(this._itemType==a.SliderItemType.Tick){this._calculateTickSize();
var c=this._largeChange;
if(this._largeChange>0){this._calculateTickSize(true);
}if(this._smallTickSize>0&&((this._largeTickSize>0&&c>0)||c<=0)){var b=this._createItemDataForTicks();
if(!b||b.length==0){return;
}this._createChildControlsUI(b);
}}}else{this._createChildControlsUI(b);
}},_createChildControlsUI:function(b){setTimeout(Function.createDelegate(this,function(){if(this._itemsUICreated){return;
}if(!this._listElement){this._createChildListElement();
}var c=this._listElement;
var f=this._children;
var d=b.length;
var e=this._isDirectionReversed;
this._childControlsCreated=true;
this._itemsUICreated=true;
for(var g=0,j=b.length;
g<j;
g++){var h=new a.RadSliderItem();
h._loadFromDictionary(b[e?(d-1-g):g]);
f.add(h);
}this._setItemsSize();
if(this._itemType==a.SliderItemType.Item){this._updateSelectedItemsStatus();
}this.raiseEvent("load");
}),0);
},_createChildListElement:function(){var c=document.createElement("ul");
c.className="rslItemsWrapper";
c.unselectable="on";
if(!this._showDecreaseHandle){c.style[this._getLocationProperty()]="0px";
}var b=this._trackElement;
b.parentNode.insertBefore(c,b);
$addHandlers(c,{mousedown:this._onTrackMouseDown},this);
this._listElement=c;
return c;
},_logInserted:function(b){},_clearSelection:function(){var b=this._children;
for(var c=0,d=b.get_count();
c<d;
c++){b.getItem(c)._updatedSelectedView(false);
}},_getItemOffset:function(k,c,d){var i=c;
if(!i){i=this._getUlSize()[this._getSizeProperty()];
}var f=this._children.get_count();
if(f<2){return{startPoint:0,endPoint:i};
}var h=0;
if(this._itemType==a.SliderItemType.Tick){var j=(this._getDragHandleBounds().width/2);
var g=j+Math.floor((i-2*j)/(2*(f-1)));
var n=g;
h=g;
if(this._isDirectionReversed){h+=d;
}else{n+=d;
}if(k==0){return{startPoint:0,endPoint:h};
}else{if(k==(f-1)){return{startPoint:(i-n),endPoint:i};
}}i-=(h+n);
f-=2;
k-=1;
if(i<0||f<=0){return{startPoint:0,endPoint:i};
}}var e=k/f;
var m=(k+1)/f;
var b=parseInt(e*i)+h;
var l=parseInt(m*i)+h;
return{startPoint:b,endPoint:l};
},_checkHitInItem:function(b,c){var d=this._getItemOffset(b);
if(c<d.startPoint){if(b<=0){return null;
}return this._checkHitInItem(b-1,c);
}else{if(c>d.endPoint){if(b>=this._children.get_count()-1){return null;
}return this._checkHitInItem(b+1,c);
}}return b;
},_getItemFromValue:function(b){var c=this._calculateDragHandleOffset(b)+this._firstValueOffset;
return this._getItemFromOffset(c);
},_getItemFromOffset:function(f){var e=this._children;
var b=e.get_count();
var c=this._getItemSize(0)[this._getSizeProperty()];
if(c>0){var d=Math.floor(f/c);
d=this._checkHitInItem(d,f);
if(d>=b){d=b-1;
}if(d>=0){return e.getItem(d);
}}return null;
},_updateSelectedItemsStatus:function(){var c=this._children;
if(c.get_count()>0){this._clearSelection();
var b=this._getItemFromValue(this._value);
if(b){b._updatedSelectedView(true);
}if(this._isSelectionRangeEnabled){var d=this._getItemFromValue(this._selectionEnd);
if(d){d._updatedSelectedView(true);
}}}},_getUlSize:function(){var k=this._trackElement;
var i=$telerik.getBorderBox(k);
var d=$telerik.getSize(k);
d.width-=i.horizontal;
d.height-=i.vertical;
var c=d;
var e=this._isHorizontal;
var g=parseInt(e?this._height:this._width);
var f=this._trackPosition;
var h=f==a.SliderTrackPosition.TopLeft;
if(h||f==a.SliderTrackPosition.BottomRight){g-=d[e?"height":"width"];
var n=e?(h?"top":"bottom"):(h?"left":"right");
var l=parseInt($telerik.getCurrentStyle(k,n));
if(!isNaN(l)){g-=l;
}var b=e?(h?"marginTop":"marginBottom"):(h?"marginLeft":"marginRight");
var j=parseInt($telerik.getCurrentStyle(k,b));
if(!isNaN(j)){g-=j;
}var m=parseInt($telerik.getCurrentStyle(this._listElement,b));
if(!isNaN(m)){g-=m;
}}if(g>=0){c[e?"height":"width"]=g;
}return c;
},_getItemSize:function(d,f,e){var g=f;
if(!g){g=this._getUlSize();
}var c={width:g.width,height:g.height};
var b=this._getSizeProperty();
var h=this._getItemOffset(d,g[b],e);
c[b]=h.endPoint-h.startPoint;
return c;
},_setItemsSize:function(){if(!this._itemsUICreated){return;
}var l=this._children;
var e=l.get_count();
if(e==0){return;
}var n=(this._itemType==a.SliderItemType.Tick);
var r=this._isHorizontal;
var t=this._getSizeProperty();
var d=0;
if(n){var o=this._isDirectionReversed;
var g=o?0:(e-1);
var q=l.getItem(g).get_isSmallTick();
var c=((this._maximumValue-this._minimumValue)%(q?this._smallChange:this._largeChange));
if(c!=0){var m=o?(this._minimumValue+c):(this._maximumValue-c);
var h=this._calculateDragHandleOffset(m);
d=this._getTrackBounds().width-h-this._getDragHandleBounds().width;
}}var p=this._getUlSize();
var u={lastItemSize:0,asymmetricAddOn:d};
var v=0;
for(var b=0;
b<e;
b++){var j=l.getItem(b).get_element();
v=this._getItemSize(b,p,d);
$telerik.setSize(j,v);
if(b==e-1){u.lastItemSize=v[t];
}else{if(n&&(b>0)){var k=j.getElementsByTagName("SPAN");
var f=Math.max(v[t],12)+"px";
for(var s=0,w=k.length;
s<w;
s++){if(!r){k[s].style.lineHeight=f;
}else{k[s].style.lineHeight="";
}}}}}this._setEndTicksBackgroundPosition(u);
},get_childListElement:function(){var b=this._listElement;
if(!b){b=this._createChildListElement();
}return b;
},get_selectedItem:function(){var b=this.get_selectedItems();
if(b.length>0){return b[0];
}return null;
},get_selectedItems:function(){if(this._itemType!=a.SliderItemType.Item){return[];
}var b=this._children;
if(this._isSelectionRangeEnabled){return[b.getItem(this.get_selectionStart()),b.getItem(this.get_selectionEnd())];
}else{return[b.getItem(this.get_value())];
}},get_selectedValue:function(){var b=this.get_selectedItem();
if(b){return b.get_value();
}return"";
},_calculateDragHandleOffset:function(d){var h=this._minimumValue;
var b=this._maximumValue;
var i=this._getTrackBounds();
var c=this._firstValueDragHandlePosition;
if(c==0){i.width=(i.width-this._getDragHandleBounds().width);
}var e=b-h;
var g=(d-h)/e;
var j;
if(this._isDirectionReversed){g=1-g;
d=b+h-d;
}var f=parseInt(g*(i.width));
var j=(d==h)?c:(d==b)?(i.width+c):f+c;
return j;
},_getBoundsInternal:function(d,b){var e=$telerik.getBounds(d);
if(b){var c=$telerik.getBorderBox(d);
e.width-=c.horizontal;
e.height-=c.vertical;
e.x+=c.left;
e.y+=c.top;
}if(this._orientation==a.Orientation.Vertical){e={x:e.y,y:e.x,height:e.width,width:e.height};
}return e;
},_getHalfDragHandleSize:function(){return(this._getDragHandleBounds().width/2);
},_getTrackBounds:function(){return this._getBoundsInternal(this._trackElement,true);
},_getSelectedRegionBounds:function(){var d=$telerik.getContentSize(this._selectedRegionElement);
d.y=0;
d.x=0;
var b=this._isSelectionRangeEnabled;
if(b||(!b&&this._isDirectionReversed)){var c=this._getElementLocation(this._selectedRegionElement);
d[this._getPointProperty()]=c;
}return d;
},_getSelectedRegionPoints:function(){var b=this._getSelectedRegionBounds();
var c=b[this._getPointProperty()];
var d=c+b[this._getSizeProperty()];
return{startPoint:c,endPoint:d};
},_getDragHandleBounds:function(c){if(!this._showDragHandle){return{x:0,y:0,height:0,width:0};
}var b=c;
if(!b){b=this._dragHandleElement;
if(this._isSelectionRangeEnabled&&this._handleInSlidingMode){b=this._handleInSlidingMode;
}}return this._getBoundsInternal(b);
},_getDecreaseHandleBounds:function(){return this._getBoundsInternal(this._decreaseHandleElement);
},_getIncreaseHandleBounds:function(){return this._getBoundsInternal(this._increaseHandleElement);
},_getLocationProperty:function(){if(!this._locationProperty){this._locationProperty=this._isHorizontal?"left":"top";
}return this._locationProperty;
},_updateLocationProperty:function(){this._locationProperty=this._isHorizontal?"left":"top";
},_getSizeProperty:function(){if(!this._sizeProperty){this._sizeProperty=this._isHorizontal?"width":"height";
}return this._sizeProperty;
},_updateSizeProperty:function(){this._sizeProperty=this._isHorizontal?"width":"height";
},_getPointProperty:function(){if(!this._pointProperty){this._pointProperty=this._isHorizontal?"x":"y";
}return this._pointProperty;
},_updatePointProperty:function(){this._pointProperty=this._isHorizontal?"x":"y";
},_doSmallStep:function(b){var c=this._smallChange;
var d=this._isDirectionReversed;
if((!b&&!d)||(b&&d)){c*=-1;
}var e=true;
if(this._isSelectionRangeEnabled&&b){e=false;
}var f=this._getActiveDragHandleValue(e)+c;
f=this._calcValue(f,null,null,e);
this._setHandlePosition(f,null,e,null,true);
},_calcValue:function(e,d,g,o){var k;
var q=this._minimumValue;
var b=this._maximumValue;
var h=o?this._dragHandleElement:this._endDragHandleElement;
if(e!=null){if(!Number.isInstanceOfType(e)){try{e=parseFloat(e);
}catch(j){e=Number.NaN;
}}if(isNaN(e)){e=q;
}k=(e<q)?q:(e>b)?b:e;
}else{var p=this._getTrackBounds();
var f=this._getDragHandleBounds(h);
if(g){f.x=(g[this._getPointProperty()])+p.x;
}var l=this._firstValueOffset;
var m=(d!=null)?(d-l):(f.x+Math.floor(f.width/2)-p.x-l);
if(this._firstValueDragHandlePosition==0){p.width=(p.width-f.width);
}var c=m/p.width;
if(this._isDirectionReversed){m=p.width+l-m;
c=1-c;
}k=(m==0)?q:(m==p.width)?b:q+c*(b-q);
}k=this._getNearestStepValue(k);
k=(k<q)?q:(k>b)?b:k;
if(this._children&&this._children.get_count()>0&&(this._itemType==a.SliderItemType.Item)){var n=this._smallChange;
var i=this._getItemFromOffset(m);
if(i){k=this._getValueFromIndex(i.get_index());
}else{if(k%2==0){if(k<this._getActiveDragHandleValue(o)){k-=n;
}else{k+=n;
}k=(k<q)?q+n:(k>b)?b-n:k;
}}}return k;
},_setHandlePosition:function(g,h,e,d,b){if(!d&&this.raise_valueChanging(g,e)){return;
}var c=h;
if(!c){c=this._handleInSlidingMode;
}if((this._animationDuration>0)&&b){this._playAnimation(g,e);
}else{var f=this._calculateDragHandleOffset(g);
if(this._showDragHandle&&c){c.style[this._getLocationProperty()]=f+"px";
this._updateRelativeLiveDragHandlePosition(c);
}this._setActiveDragHandleValue(g,e,true);
this._updateSelectedRegion(c,f,e);
}},_getNearestStepValue:function(c){var h=this._minimumValue;
var b=this._maximumValue;
var e=b-h;
if(e==0){return c;
}if(c>=b){return b;
}if(c<=h){return h;
}c-=h;
var g=this._smallChange;
var f=c%g;
if(f==0){return(c+h);
}var d=g-f;
if(f<g/2){d=-1*f;
}var i=c+d+h;
return i;
},_getRelativeLiveDragHandle:function(b){if(this._liveDrag||!this._showDragHandle){return null;
}if(this._updateSelectionStart(null,b)){return this._liveDragHandleElement;
}return this._liveDragEndHandleElement;
},_updateRelativeLiveDragHandlePosition:function(d){if(this._liveDrag||!this._showDragHandle){return;
}if(d){var c=this._getRelativeLiveDragHandle(d);
if(c){var b=this._getLocationProperty();
c.style[b]=d.style[b];
}}else{if(this._dragHandleElement){this._updateRelativeLiveDragHandlePosition(this._dragHandleElement);
if(this._isSelectionRangeEnabled&&this._endDragHandleElement){this._updateRelativeLiveDragHandlePosition(this._endDragHandleElement);
}}}},_getNearestDragHandle:function(d){var e=this._dragHandleElement;
if(this._isSelectionRangeEnabled&&d){var b=this._getSelectedRegionPoints();
var c=b.endPoint;
if((Math.abs(d-b.startPoint)>Math.abs(d-c))||d>c){e=this._endDragHandleElement;
}}return e;
},_getElementLocation:function(d){var c=this._getLocationProperty();
var b=parseInt(d.style[c]);
if(isNaN(b)){b=0;
}return b;
},_getActiveDragHandleValue:function(d){var c=d?this._dragHandleElement:this._endDragHandleElement;
if(!c&&this._showDragHandle){return this._minimumValue;
}var b=(d!=null)?d:this._updateSelectionStart(null,dragHandle);
if(b){return this._value;
}else{return this._selectionEnd;
}},_setActiveDragHandleValue:function(f,h,g,d){var e=h?this._dragHandleElement:this._endDragHandleElement;
if(!e&&this._showDragHandle){return;
}var c=this._getActiveDragHandleValue(h);
if(!g&&this.raise_valueChanging(f,h)){return true;
}var i=this._isDirectionReversed;
var b=this._isSelectionRangeEnabled;
if(h){if((f>this._selectionEnd&&b&&!i)||(f<this._selectionEnd&&b&&i)){this._value=this._selectionEnd;
var j=this._calculateDragHandleOffset(this._value);
this._selectedRegionElement.style[this._getLocationProperty()]=j+this._getHalfDragHandleSize()+"px";
this._switchDragHanldes();
this._selectionEnd=f;
}else{this._value=f;
}}else{if((f<this._value&&b&&!i)||(f>this._value&&b&&i)){this._selectionEnd=this._value;
this._selectedRegionElement.style[this._getSizeProperty()]="0px";
this._switchDragHanldes();
this._value=f;
}else{this._selectionEnd=f;
}}if(this._itemType==a.SliderItemType.Item){this._updateSelectedItemsStatus();
}if(!d){this.updateClientState();
}if(f!=c){this.raise_valueChanged(c,f);
if(!this._inSlidingMode&&this._autoPostBack){this._raiseValueChangedServerEvent();
}}},_setNewValue:function(h,d,l){if(isNaN(parseInt(h,10))){return;
}var g=this._minimumValue;
var c=this._maximumValue;
if(h<g){h=g;
}else{if(h>c){h=c;
}}if(!this._initialized||!this._wrapperElement){h=this._getNearestStepValue(h);
this[d?"_value":"_selectionEnd"]=h;
this.updateClientState();
return;
}if(this._isSelectionRangeEnabled){var k=this._isDirectionReversed;
var e=this._value;
var b=this._selectionEnd;
if((h<e&&!d&&!k)||(h>e&&!d&&k)){d=true;
}else{if((h>b&&d&&!k)||(h<b&&d&&k)){d=false;
}}}var i=h;
i=this._calcValue(h,null,null,d);
i=i.toFixed(0);
if(!Number.isInstanceOfType(i)){try{i=parseFloat(i);
}catch(j){i=Number.NaN;
}}var f=this[d?"_dragHandleElement":"_endDragHandleElement"];
this._setHandlePosition(i,f,d,l);
},_getIndexFromValue:function(c){var f=this._children;
if(!f){return c;
}var d=f.get_count();
if(d==0){d=this._itemData?this._itemData.length:0;
}if(d>0&&(this._itemType==a.SliderItemType.Item)){var b=this._minimumValue;
var e=d-1;
c=(c-this._smallChange)/2;
c=(c<b)?b:((c>e)?e:c);
}return c;
},_getValueFromIndex:function(g){var e=this._children;
if(!e){return g;
}var c=e.get_count();
if(c==0){c=this._itemData?this._itemData.length:0;
}if(c>0&&(this._itemType==a.SliderItemType.Item)){var b=this._smallChange;
var d=this._minimumValue;
var f=c*2-b;
g=(2*g)+b;
g=(g<d)?d:((g>f)?f:g);
}return g;
},_switchDragHanldes:function(){if(!this._isSelectionRangeEnabled){return;
}var b=this._dragHandleElement;
this._dragHandleElement=this._endDragHandleElement;
this._endDragHandleElement=b;
if(!this._liveDrag){b=this._liveDragHandleElement;
this._liveDragHandleElement=this._liveDragEndHandleElement;
this._liveDragEndHandleElement=b;
}if(this._resizeExtender&&this._endResizeExtender){b=this._resizeExtender;
this._resizeExtender=this._endResizeExtender;
this._endResizeExtender=b;
}b=null;
},_updateSelectionStart:function(d,e){if(!this._isSelectionRangeEnabled){return true;
}var c=this._showDragHandle;
if(c&&e!=null){return(e.id==this._dragHandleElement.id);
}else{if(!c&&d!=null){var b=this._getSelectedRegionPoints();
return(Math.abs(d-b.startPoint)<Math.abs(d-b.endPoint));
}}return true;
},_isInIncreaseMode:function(e,d){var c=this._getSelectedRegionPoints();
var f=c.endPoint;
var b=this._isSelectionRangeEnabled;
var g=(!b&&(e<f))||(b&&(((e<f)&&!d)||((e<c.startPoint)&&d)));
if(this._isDirectionReversed){if(!b){g=e>c.startPoint;
}else{g=!g;
}}return g;
},_updateSelectedRegion:function(e,j,i){j+=this._getHalfDragHandleSize();
var h=j;
var f=this._selectedRegionElement;
var b=this._getSizeProperty();
var c=this._getLocationProperty();
if(this._isSelectionRangeEnabled){var g=this._getSelectedRegionBounds();
var d=g[this._getPointProperty()];
h=g[b];
if(i||this._updateSelectionStart(j,e)){f.style[c]=j+"px";
h=h+(d-Math.floor(j));
}else{h=(Math.floor(j)-d);
}}else{if(this._isDirectionReversed){f.style[c]=j+"px";
h=this._getTrackBounds().width-Math.floor(j);
}}if(!isNaN(h)&&h>=0){f.style[b]=h+"px";
}else{f.style[b]="";
}},_setEndTicksBackgroundPosition:function(k){if(this._itemType==a.SliderItemType.Tick){var m=this._showDragHandle;
var i=this._largeTickSize;
var b=this._smallTickSize;
var j=Math.ceil(this._getHalfDragHandleSize());
var f=Math.floor(i/2);
var h=Math.floor(b/2);
var c=this._children;
var g=c.getItem(0).get_element();
var n=c.getItem(c.get_count()-1).get_element();
var o=this._isDirectionReversed;
var d=k.asymmetricAddOn;
var e=o?d:0;
this._setBackgroundPosition(g,(e+(m?(j-f):0)),(e+(m?(j-h):0)));
var l=Math.ceil(k.lastItemSize)-j-(!o?d:0);
this._setBackgroundPosition(n,(l-(m?f:i)),(l-(m?h:b)));
}},_setBackgroundPosition:function(d,e,n){var o=(d.className.indexOf("rslLarge")>-1);
if((o&&e<0)||(!o&&n<0)){return;
}var g;
var h;
if(this._isHorizontal){g=(o?e:n)+"px";
h=this._getImageBackgroundPosition();
}else{h=(o?e:n)+"px";
g=this._getImageBackgroundPosition();
}d.style.backgroundPosition=g+" "+h;
if(o){var f=this._isHorizontal;
var l=this._getSizeProperty();
var k=(l=="width")?"height":"width";
var p=d.getElementsByTagName("SPAN");
var m=Math.max((2*e+this._largeTickSize),12)+"px";
for(var b=0,j=p.length;
b<j;
b++){var c=p[b];
c.style[k]="";
c.style[l]=m;
if(!f){c.style.lineHeight=m;
}else{c.style.lineHeight="";
}}}},_getImageBackgroundPosition:function(){var c=this._trackPosition;
var b=this._isHorizontal;
var d="center";
if(c==a.SliderTrackPosition.TopLeft){d=b?"top":"left";
}else{if(c==a.SliderTrackPosition.BottomRight){d=b?"bottom":"right";
}}return d;
},_calculateTickSize:function(d){var c=document.createElement("DIV");
c.className=d?"rslLargeTick":"rslSmallTick";
c.style.position="absolute";
c.style.top="-9999px";
c.style.left="-9999px";
this._wrapperElement.appendChild(c);
var b=this._isHorizontal?c.offsetWidth:c.offsetHeight;
c.parentNode.removeChild(c);
if(d){this._largeTickSize=b;
}else{this._smallTickSize=b;
}},_checkRenderTicks:function(){var e=this._largeChange;
var g=(this._maximumValue-this._minimumValue)/this._smallChange;
var f=(this._getTrackBounds().width)/g;
var d=Math.floor(f*e);
f=Math.floor(f);
var c=((e>0)&&(d>=this._largeTickSize));
var b=(f>=this._smallTickSize);
return{renderLargeTicks:c,renderSmallTicks:b};
},_createItemDataForTicks:function(){var n=[];
var h=this._largeChange;
var e=this._smallChange;
var c=this._maximumValue;
var l=this._minimumValue;
var g=this._checkRenderTicks();
var m=this._renderLargeTicks=g.renderLargeTicks;
var d=this._renderSmallTicks=g.renderSmallTicks;
if(!m){h=Math.abs(l)+c+e;
}for(var b=l;
b<=c;
b+=h){if(m){n[n.length]={text:b,value:b,tooltip:b,isLargeTick:true};
}if(d){var k=b+(m?e:0);
var f=(m&&((b+h)<=c))?(b+h):(c+1);
for(;
k<f;
k+=e){n[n.length]={text:k,value:k,tooltip:k,isSmallTick:true};
}}}this._itemData=n;
return n;
},_clearSizePosition:function(b){if(!b){return;
}b.style.width="";
b.style.height="";
b.style.top="";
b.style.left="";
},_raiseValueChangedServerEvent:function(){setTimeout(Function.createDelegate(this,function(){__doPostBack(this._uniqueID);
}),0);
},_onMouseUp:function(b){this._trackMouseDownDone=true;
this._incdecreaseMouseDownDone=true;
},_onTrackMouseDown:function(q){if(!this._enabled||q.button!=0){return;
}var o=q.target;
var f=(o==this._selectedRegionElement);
var t=(o==this._trackElement);
var k=this._listElement;
var r=o.parentNode;
var b=(k)?((r&&r==k)||(r.parentNode&&r.parentNode==k)):false;
if(!t&&!f&&!b){return;
}var g=this._getTrackBounds();
var h=$telerik.getDocumentRelativeCursorPosition(q);
var p=((this._isHorizontal)?h.left:h.top)-g.x;
var s=0;
if(this._firstValueDragHandlePosition==0){s=this._firstValueOffset;
}var i=g.width-s;
p=(p<s)?s:(p>i)?i:p;
var m=this._handleInSlidingMode=this._getNearestDragHandle(p);
var c=this._updateSelectionStart(p,m);
var e=this._calcValue(null,p,null,c);
if(this._largeChange==0){this._setHandlePosition(e,m,c,null,true);
}else{this._trackMouseDownDone=false;
var j=this._isInIncreaseMode(p,c);
var d=(this._children.get_count()>0&&(this._itemType==a.SliderItemType.Item));
var n=this;
function l(u){var x=n._isInIncreaseMode(p,c);
if(n._trackMouseDownDone||x!=j){clearTimeout(this._mDownInterval);
return;
}var v=n._largeChange;
if(d){v*=2;
}if(j){v*=-1;
}var w=n._getActiveDragHandleValue(c)+v;
w=n._calcValue(w,null,null,c);
if((!j&&(e<w))||(j&&(e>w))){w=e;
}n._setHandlePosition(w,m,c,null,true);
n._mDownInterval=setTimeout(l,(u)?u:100);
}l(300);
}},_onMouseWheel:function(e){if(!this._enabled){return;
}var c=this._getTrackBounds();
if(c.width<1||c.height<1){return;
}var f=(e.wheelDelta)?e.wheelDelta:e.detail;
if($telerik.isIE){f*=-1;
}var b=this._value;
var d=this._smallChange;
var g=b+((f>0)?d:(-1)*d);
g=this._calcValue(g,null,null,true);
this._setHandlePosition(g,this._dragHandleElement,true,null,true);
return $telerik.cancelRawEvent(e);
},_onDecreaseMouseDown:function(b){this._onIncreaseDecreaseMDown(b,false);
},_onIncreaseMouseDown:function(b){this._onIncreaseDecreaseMDown(b,true);
},_onIncreaseDecreaseMDown:function(e,c){if(!this._enabled){return;
}if(e.button!=0){return;
}this._handleInSlidingMode=this._dragHandleElement;
var d=true;
if(this._isSelectionRangeEnabled&&c){this._handleInSlidingMode=this._endDragHandleElement;
d=false;
}this._incdecreaseMouseDownDone=false;
this._inSlidingMode=true;
this._valueOnSlideStart=this._getActiveDragHandleValue(d);
var f=this;
function b(g){if(f._incdecreaseMouseDownDone){f._inSlidingMode=false;
clearTimeout(f._increaseMDownInterval);
if(f._valueOnSlideStart!=f._getActiveDragHandleValue(d)&&f._autoPostBack){f._raiseValueChangedServerEvent();
}return;
}f._doSmallStep(c);
f._increaseMDownInterval=setTimeout(b,(g)?g:50);
}b(300);
},_getValuesBeforeAnimation:function(){return{selectionStart:this._valueBeforeAnimation,selectionEnd:this._selectionEndBeforeAnimation};
},add_loaded:function(b){this.add_load(b);
},remove_loaded:function(b){this.remove_load(b);
},add_load:function(b){this.get_events().addHandler("load",b);
},remove_load:function(b){this.get_events().removeHandler("load",b);
},add_slideStart:function(b){this.get_events().addHandler("slideStart",b);
},remove_slideStart:function(b){this.get_events().removeHandler("slideStart",b);
},add_slide:function(b){this.get_events().addHandler("slide",b);
},remove_slide:function(b){this.get_events().removeHandler("slide",b);
},add_slideEnd:function(b){this.get_events().addHandler("slideEnd",b);
},remove_slideEnd:function(b){this.get_events().removeHandler("slideEnd",b);
},add_valueChange:function(b){this.add_valueChanged(b);
},remove_valueChange:function(b){this.remove_valueChanged(b);
},raise_valueChange:function(b,c){this.raise_valueChanged(b,c);
},add_valueChanged:function(b){this.get_events().addHandler("valueChanged",b);
},remove_valueChanged:function(b){this.get_events().removeHandler("valueChanged",b);
},raise_valueChanged:function(b,c){b=this._getIndexFromValue(b);
c=this._getIndexFromValue(c);
var d=new a.SliderValueChangedEventArgs(b,c);
this.raiseEvent("valueChanged",d);
},add_beforeValueChange:function(b){this.add_valueChanging(b);
},remove_beforeValueChange:function(b){this.remove_valueChanging(b);
},raise_beforeValueChange:function(b,c){return this.raise_valueChanging(b,c);
},add_valueChanging:function(b){this.get_events().addHandler("valueChanging",b);
},remove_valueChanging:function(b){this.get_events().removeHandler("valueChanging",b);
},raise_valueChanging:function(c,e){var b=this._getActiveDragHandleValue(e);
b=this._getIndexFromValue(b);
c=this._getIndexFromValue(c);
if(this._isSelectionRangeEnabled){this._valueBeforeAnimation=e?c:this._value;
this._selectionEndBeforeAnimation=e?this._selectionEnd:c;
}else{this._valueBeforeAnimation=c;
}var d=new a.SliderValueChangingEventArgs(b,c);
this.raiseEvent("valueChanging",d);
if(d.get_cancel()){return true;
}return false;
},get_activeHandle:function(){if(!this._liveDrag){return this._getRelativeLiveDragHandle(this._handleInSlidingMode);
}return this._handleInSlidingMode;
},get_dragHandles:function(){return[this._dragHandleElement,this._endDragHandleElement];
},get_value:function(){var b=this._value;
if(this._isDirectionReversed&&this._isSelectionRangeEnabled){b=this._selectionEnd;
}return this._getIndexFromValue(b);
},set_value:function(b){if(this._initialized&&this._wrapperElement){b=this._getValueFromIndex(b);
}this._setNewValue(b,true);
},get_selectionStart:function(){return this.get_value();
},set_selectionStart:function(b){if(this._isSelectionRangeEnabled){this.set_value(b);
}},get_selectionEnd:function(){var b=this._selectionEnd;
if(this._isDirectionReversed&&this._isSelectionRangeEnabled){b=this._value;
}return this._getIndexFromValue(b);
},set_selectionEnd:function(b){if(this._initialized&&this._wrapperElement){b=this._getValueFromIndex(b);
}this._setNewValue(b,false);
},get_isSelectionRangeEnabled:function(){return this._isSelectionRangeEnabled;
},set_isSelectionRangeEnabled:function(b){if(this._isSelectionRangeEnabled!=b){this._isSelectionRangeEnabled=b;
if(this._initialized&&this._wrapperElement){this._setShowEndDragHandle();
this._setTrackMouseWheel();
if(this._isSelectionRangeEnabled){var b=this._value;
var d=this._selectionEnd;
var c=this._isDirectionReversed;
if((b<d&&c)||(b>d&&!c)){this._switchDragHanldes();
var e=b;
this._value=d;
this._selectionEnd=e;
}}else{if(this._isDirectionReversed){var e=this._value;
this._value=this._selectionEnd;
this._selectionEnd=e;
}}this._clearSizePosition(this._selectedRegionElement);
this._refreshLayout();
}this.updateClientState();
}},get_isDirectionReversed:function(){return this._isDirectionReversed;
},set_isDirectionReversed:function(b){if(this._isDirectionReversed!=b){this._isDirectionReversed=b;
if(this._initialized&&this._wrapperElement){if(this._isSelectionRangeEnabled){var c=this._value;
this._value=this._selectionEnd;
this._selectionEnd=c;
}this.repaint(true);
}this.updateClientState();
}},get_liveDrag:function(){return this._liveDrag;
},set_liveDrag:function(b){if(this._liveDrag!=b){this._liveDrag=b;
if(this._initialized&&this._wrapperElement){this.repaint(true);
}this.updateClientState();
}},get_minimumValue:function(){return this._minimumValue;
},set_minimumValue:function(b){if(isNaN(parseInt(b,10))){return;
}if(this._minimumValue!=b){this._minimumValue=b;
if(this._initialized&&this._wrapperElement){this.repaint(true);
}this.updateClientState();
}},get_maximumValue:function(){return this._maximumValue;
},set_maximumValue:function(b){if(isNaN(parseInt(b,10))){return;
}if(this._maximumValue!=b){this._maximumValue=b;
if(this._initialized&&this._wrapperElement){this.repaint(true);
}this.updateClientState();
}},get_orientation:function(){return this._orientation;
},set_orientation:function(b){if(this._orientation!=b){this._orientation=b;
this._isHorizontal=(this._orientation==a.Orientation.Horizontal);
this._updateLocationProperty();
this._updateSizeProperty();
this._updatePointProperty();
if(this._initialized&&this._wrapperElement){this._setOrientation();
this._clearSizePosition(this._selectedRegionElement);
this._clearSizePosition(this._dragHandleElement);
this._clearSizePosition(this._endDragHandleElement);
if(!this._liveDrag){this._clearSizePosition(this._liveDragHandleElement);
this._clearSizePosition(this._liveDragEndHandleElement);
}this._refreshLayout();
if(!this._showDecreaseHandle){var c=this._trackElement;
var e=this._listElement;
var d=this._getLocationProperty();
var f=(d=="top")?"left":"top";
if(c){c.style[f]="";
c.style[d]="0";
}if(e){e.style[f]="";
e.style[d]="0";
}}}this.updateClientState();
}},get_animationDuration:function(){return this._animationDuration;
},set_animationDuration:function(b){if(isNaN(parseInt(b,10))||b<0){throw Error.argumentOutOfRange("value",b,"AnimationDuration should be positive integer");
}if(this._animationDuration!=b){this._animationDuration=b;
this.updateClientState();
}},get_length:function(){var b=parseInt((this._isHorizontal)?this._width:this._height);
if(isNaN(b)){b=20;
}return b;
},set_length:function(b){if(this._isHorizontal){this.set_width(b);
}else{this.set_height(b);
}},get_width:function(){return this._width;
},set_width:function(b){if(isNaN(parseInt(b,10))||b<1){throw Error.argumentOutOfRange("value",b,"Width should be an integer bigger than 1");
}if(this._width!=b){this._width=b;
if(this._initialized&&this._wrapperElement){this._setWidth();
this._refreshLayout();
}this.updateClientState();
}},get_height:function(){return this._height;
},set_height:function(b){if(isNaN(parseInt(b,10))||b<1){throw Error.argumentOutOfRange("value",b,"Height should be an integer bigger than 1");
}if(this._height!=b){this._height=b;
if(this._initialized&&this._wrapperElement){this._setHeight();
this._refreshLayout();
}this.updateClientState();
}},get_showDecreaseHandle:function(){return this._showDecreaseHandle;
},set_showDecreaseHandle:function(b){if(this._showDecreaseHandle!=b){this._showDecreaseHandle=b;
if(this._initialized&&this._wrapperElement){this._setShowHandle(true);
this._refreshLayout();
}this.updateClientState();
}},get_showIncreaseHandle:function(){return this._showIncreaseHandle;
},set_showIncreaseHandle:function(b){if(this._showIncreaseHandle!=b){this._showIncreaseHandle=b;
if(this._initialized&&this._wrapperElement){this._setShowHandle(false);
this._refreshLayout();
}this.updateClientState();
}},get_showDragHandle:function(){return this._showDragHandle;
},set_showDragHandle:function(b){if(this._showDragHandle!=b){this._showDragHandle=b;
if(this._initialized&&this._wrapperElement){this._setShowDragHandle();
this._setFirstValueOffset();
if(this._children.get_count()>0){this._refreshLayout();
}this._setValuesForSlider();
}this.updateClientState();
}},get_trackMouseWheel:function(){return this._trackMouseWheel;
},set_trackMouseWheel:function(b){if(this._trackMouseWheel!=b){this._trackMouseWheel=b;
if(this._initialized&&this._wrapperElement){this._setTrackMouseWheel();
}this.updateClientState();
}},get_largeChange:function(){return this._largeChange;
},set_largeChange:function(b){if(isNaN(parseInt(b,10))||b<0){throw Error.argumentOutOfRange("value",b,"LargeChange should be positive integer");
}if(this._largeChange!=b){this._largeChange=b;
if(this._initialized&&this._wrapperElement){this.repaint(true);
}this.updateClientState();
}},get_clickOffset:function(){return this._largeChange;
},set_clickOffset:function(b){this.set_largeChange(b);
},get_slideStep:function(){return this._smallChange;
},set_slideStep:function(b){this.set_smallChange(b);
},get_smallChange:function(){return this._smallChange;
},set_smallChange:function(b){if(isNaN(parseInt(b,10))||b<1){throw Error.argumentOutOfRange("value",b,"SmallChange should be integer bigger than 1");
}if(this._smallChange!=b){this._smallChange=b;
if(this._initialized&&this._wrapperElement){this.repaint(true);
}this.updateClientState();
}},get_itemType:function(){return this._itemType;
},set_itemType:function(b){if(this._itemType!=b){this._itemType=b;
}},get_trackPosition:function(){return this._trackPosition;
},set_trackPosition:function(h){var f=this._trackPosition;
if(f!=h){this._trackPosition=h;
if(this._initialized&&this._wrapperElement){this._setTrackPosition(f);
var e=(f==a.SliderTrackPosition.Center);
var l=(this._trackPosition==a.SliderTrackPosition.Center);
if((e||l)&&this._itemType==a.SliderItemType.Tick&&this._renderLargeTicks){var j=this._children;
var d=this._listElement;
var k=d.childNodes;
if($telerik.isIE){k=d.children;
}for(var b=0,m=k.length;
b<m;
b++){var c=k[b];
if(c.nodeType==1&&c.className.indexOf("rslLarge")>-1){var g=c.getElementsByTagName("SPAN");
if(g.length>1){var n=g[1];
if(l){n.style.display="";
}else{n.style.display="none";
}}else{if(l){var n=document.createElement("SPAN");
n.className="rslBRItemText";
n.innerHTML=j.getItem(b).get_value();
c.appendChild(n);
}}}}}this._refreshLayout();
}this.updateClientState();
}},get_visibleItems:function(){var d=this._children;
var g=d.get_count();
var c=this._isDirectionReversed;
var b=[];
for(var e=0;
e<g;
e++){var f=d.getItem(c?(g-1-e):e);
if(f.get_visible()){Array.add(b,f);
}}return b;
},get_items:function(){var b=this._getChildren();
var g=b.get_count();
var c=this._isDirectionReversed;
var e=[];
for(var d=0;
d<g;
d++){var f=b.getItem(c?(g-1-d):d);
Array.add(e,f);
}return e;
},set_items:function(b){this._children=b;
},get_itemData:function(){return this._itemData;
},set_itemData:function(b){this._itemData=b;
},get_enabled:function(){return this._enabled;
},set_enabled:function(b){if(this._enabled!=b){this._enabled=b;
if(this._initialized&&this._wrapperElement){this._setEnabled();
}}},get_dragText:function(){return this._dragText;
},set_dragText:function(b){var c=this._dragText;
if(c!=b){this._dragText=b;
var d=this._dragHandleElement;
if(d){d.title=b;
}d=this._endDragHandleElement;
if(d){d.title=b;
}this.updateClientState();
}},get_skin:function(){return this._skin;
},redraw:function(b){if(b){if(this._wrapperElement){var c=this._wrapperElement;
c.parentNode.removeChild(c);
this._wrapperElement=null;
if(this._children){this._children.clear();
this._itemsUICreated=false;
if(this._itemType==a.SliderItemType.Tick){this._itemData=[];
}}this._listElement=null;
this._disposeSlider();
}this._initializeSliderControl();
}else{if(!this._wrapperElement){this._initializeSliderControl();
}else{this._refreshLayout();
}}},saveClientState:function(){var d=["value","selectionStart","selectionEnd","isSelectionRangeEnabled","orientation","smallChange","largeChange","trackMouseWheel","showDragHandle","showDecreaseHandle","showIncreaseHandle","width","height","animationDuration","minimumValue","maximumValue","trackPosition","liveDrag","dragText"];
var b={};
for(var c=0;
c<d.length;
c++){b[d[c]]=this["get_"+d[c]]();
}return Sys.Serialization.JavaScriptSerializer.serialize(b);
}};
a.RadSlider.registerClass("Telerik.Web.UI.RadSlider",a.ControlItemContainer);
})();
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadSliderItem=function(){Telerik.Web.UI.RadSliderItem.initializeBase(this);
this._imageUrl=null;
this._imageElement=null;
};
Telerik.Web.UI.RadSliderItem.prototype={set_visible:function(a){var b=this.get_visible()!=a;
if(!b){return;
}Telerik.Web.UI.RadSliderItem.callBaseMethod(this,"set_visible",[a]);
if(a){this.get_element().style.display="";
}else{this.get_element().style.display="none";
}},_updatedSelectedView:function(a){if(this.get_slider()._itemType==Telerik.Web.UI.SliderItemType.Item){var b=this.get_element();
if(a){Sys.UI.DomElement.addCssClass(b,"rslItemSelected");
}else{Sys.UI.DomElement.removeCssClass(b,"rslItemSelected");
}}},get_selected:function(){var a=false;
var b=this.get_slider();
var c=this.get_index();
if(b.get_isSelectionRangeEnabled()){if(b.get_selectionStart()==c||b.get_selectionEnd()==c){a=true;
}}else{if(b.get_value()==c){a=true;
}}return a;
},set_cssClass:function(a){this._properties.setValue("cssClass",a);
},get_cssClass:function(){return this._properties.getValue("cssClass","");
},set_tooltip:function(a){this._properties.setValue("tooltip",a);
},get_tooltip:function(){return this._properties.getValue("tooltip","");
},set_isLargeTick:function(a){this._properties.setValue("isLargeTick",a);
},get_isLargeTick:function(){return this._properties.getValue("isLargeTick",false);
},set_isSmallTick:function(a){this._properties.setValue("isSmallTick",a);
},get_isSmallTick:function(){return this._properties.getValue("isSmallTick",false);
},_loadFromDictionary:function(a){if(a.text!=null){this.set_text(a.text);
}if(a.value!=null){this.set_value(a.value);
}if(a.enabled!=null){this.set_enabled(a.enabled);
}if(a.cssClass){this.set_cssClass(a.cssClass);
}if(a.tooltip!=null){this.set_tooltip(a.tooltip);
}if(a.isLargeTick!=null){this.set_isLargeTick(a.isLargeTick);
}if(a.isSmallTick!=null){this.set_isSmallTick(a.isSmallTick);
}},_render:function(j){j[j.length]="<li unselectable='on' ";
if(this.get_tooltip().toString()!=""){j[j.length]='title="'+this.get_tooltip()+'" ';
}var g=this.get_index();
var f=this.get_slider();
var c=f.get_itemData().length;
j[j.length]="class='";
var d=f._itemType;
if(d==Telerik.Web.UI.SliderItemType.Item){var e=this.get_cssClass();
if(e!=""){e=" "+e;
}var b=(this.get_enabled())?"'>":" rslItemDisabled'>";
if(g==0){j[j.length]="rslItem rslItemFirst"+e+b;
}else{if(g==c-1){j[j.length]="rslItem rslItemLast"+e+b;
}else{j[j.length]="rslItem"+e+b;
}}j[j.length]="<span>";
j[j.length]=this.get_text();
j[j.length]="</span>";
}else{if(d==Telerik.Web.UI.SliderItemType.Tick){var h=this.get_isLargeTick();
var i=false;
if(g==0){if(h){j[j.length]="rslLargeTick rslLargeTickFirst'>";
i=true;
}else{j[j.length]="rslSmallTick rslSmallTickFirst'>";
}}else{if(g==c-1){if(h){j[j.length]="rslLargeTick rslLargeTickLast'>";
i=true;
}else{j[j.length]="rslSmallTick rslSmallTickLast'>";
}}else{if(h){j[j.length]="rslLargeTick'>";
i=true;
}else{j[j.length]="rslSmallTick'>";
}}}if(i){var a=this.get_value();
j[j.length]="<span>";
j[j.length]=a;
j[j.length]="</span>";
if(f._trackPosition==Telerik.Web.UI.SliderTrackPosition.Center){j[j.length]="<span class='rslBRItemText'>";
j[j.length]=a;
j[j.length]="</span>";
}}}}j[j.length]="</li>";
},get_textElement:function(){return this.get_element();
},get_slider:function(){return this._parent;
},_createChildListElement:function(){var a=document.createElement("ul");
this.get_slider().get_dropDownElement().appendChild(a);
},_shouldInitializeChild:function(a){return false;
},_createChildControls:function(){},_getHierarchicalIndex:function(){return this.get_index();
}};
Telerik.Web.UI.RadSliderItem.registerClass("Telerik.Web.UI.RadSliderItem",Telerik.Web.UI.ControlItem);
Type.registerNamespace("Telerik.Web.UI");
Telerik.Web.UI.RadSliderItemCollection=function(a){Telerik.Web.UI.RadSliderItemCollection.initializeBase(this,[a]);
};
Telerik.Web.UI.RadSliderItemCollection.prototype={};
Telerik.Web.UI.RadSliderItemCollection.registerClass("Telerik.Web.UI.RadSliderItemCollection",Telerik.Web.UI.ControlItemCollection);
